package com.cap.bts.crmdp.dealer.mars.dto;


import java.io.Serializable;

/**
 * User: annson
 *
 */
public class AjaxResponse implements Serializable{
    private static final long serialVersionUID = -7133161245167006141L;
    private boolean success = true;
    private String errorCode;
    private String message = null;
    private Object data = null;

    public AjaxResponse() {
    }

    public AjaxResponse(Object data) {
        this.data = data;
    }

    public AjaxResponse(String errorCode) {
        this.errorCode = errorCode;
    }

    public AjaxResponse(String errorCode, String message) {
        this.success = false;
        this.errorCode = errorCode;
        this.message = message;
    }

    public String getErrorCode() {
        return errorCode;
    }

    public void setErrorCode(String errorCode) {
        this.errorCode = errorCode;
    }

    public Object getData() {
        return data;
    }

    public void setData(Object data) {
        this.data = data;
    }

    public boolean getSuccess() {
        return success;
    }

    public void setSuccess(boolean success) {
        this.success = success;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }
}

